﻿using System;
using System.Collections.Generic;

namespace IOA.MES.PdaApi.Models.Response.Allocate
{
    /// <summary>
    /// 查询入库列表返回对象
    /// </summary>
    public class QueryAllocateInboundsResponse
    {
        /// <summary>
        /// 入库记录列表
        /// </summary>
        public List<AllocateInboundOrder> Inbounds { get; set; } = new List<AllocateInboundOrder>();
    }

    /// <summary>
    /// 调拨收货
    /// </summary>
    public class AllocateInboundOrder
    {
        /// <summary>
        /// 入库单号
        /// </summary>
        public string InboundNo { get; set; }

        /// <summary>
        /// 如调拨单号
        /// </summary>
        public string AllocateNo { get; set; }

        /// <summary>
        /// 入库仓库代码
        /// </summary>
        public string WarehouseCode { get; set; }

        /// <summary>
        /// 入库仓库名称
        /// </summary>
        public string WarehouseName { get; set; }

        /// <summary>
        /// 入库数量
        /// </summary>
        public decimal Quantity { get; set; }

        /// <summary>
        /// 入库人
        /// </summary>
        public string InboundBy { get; set; }

        /// <summary>
        /// 入库时间
        /// </summary>
        public DateTime InboundTime { get; set; }

        /// <summary>
        /// 收货清单
        /// </summary>
        public List<AllocateProduct> Products { get; set; } = new List<AllocateProduct>();
    }

    /// <summary>
    /// 包装对象
    /// </summary>
    public class AllocateProduct
    {
        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNo { get; set; }

        /// <summary>
        /// 组件料号
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// 组件名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 收货数量
        /// </summary>
        public decimal Quantity { get; set; }
    }
}
